package com.jintoufs.service.baseinfo.impl;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.dao.baseinfo.SiteCoinDAO;
import com.jintoufs.domain.baseinfo.SiteCoin;
import com.jintoufs.service.baseinfo.SiteCoinService;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author xiaoemo
 */
@Repository
public class SiteCoinServiceImpl implements SiteCoinService {
    @Resource
    private SiteCoinDAO siteCoinDAO;

    @Override
    public List<Map<String, Object>> queryByParams(Map<String, Object> params) {
        return siteCoinDAO.queryByParams(params);
    }

    @Override
    public void insert(SiteCoin entity) {
        siteCoinDAO.insert(entity);
    }

    @Override
    public void updateByPrimaryKey(SiteCoin entity) {
        siteCoinDAO.updateByPrimaryKey(entity);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
        siteCoinDAO.deleteByPrimaryKey(id);
    }

    @Override
    public List<Map<String, Object>> getByFilter(QueryFilters filters) {
        return siteCoinDAO.getByFilter(filters);
    }

    @Override
    public SiteCoin selectByPrimaryKey(Integer id) {
        return siteCoinDAO.selectByPrimaryKey(id);
    }
}
